home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
- <head>
- <title>MyServer Documentation - Basic Server Configuration - www.myserverproject.net</title>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
- <meta http-equiv="Content-Style-Type" content="text/css" />
- <link rel="stylesheet" type="text/css" href="../style/myserver.css" />
- </head>
- <body>
- <table class="center" width="95%">
- <tr>
- <td class="center">
- <h1 class="title">BASIC SERVER CONFIGURATION</h1>
- In the <span class="code">myserver.xml</span> file you can set the
- default page for your websites
- hosted in MyServer.<br />
- <br />
- The lines below already exist in your configuration file:<br />
- <p class="code">
- <DEFAULT_FILENAME0>default.html</DEFAULT_FILENAME0><br />
-
- <DEFAULT_FILENAME1>default.php</DEFAULT_FILENAME1><br />
-
- <DEFAULT_FILENAME2>default.php3</DEFAULT_FILENAME2><br />
-
- <DEFAULT_FILENAME3>index.html</DEFAULT_FILENAME3><br />
-
- <DEFAULT_FILENAME4>index.php</DEFAULT_FILENAME4><br />
-
- <DEFAULT_FILENAME5>index.php3</DEFAULT_FILENAME5><br />
-
- <DEFAULT_FILENAME6>default.htm</DEFAULT_FILENAME6> <br />
- </p>
- <br />
- So, if you have a <a class="code" href="virtualhosts.html">Virtual Host</a>
- http://mypc.net, the page that will appear when accessing that address
- on the browser, will be one of the files above. You can add more lines
- or change any of them, if you need a different filename. The same mechanism is used for every directory and
- not only with the root one.<br />
-
- <br />
- <br /><br />
- In <a class="code" href="errorfiles.html">Errors</a> section you
- learned how to create and use your own error pages. But you can also
- disable the custom error pages, by changing the line below:<br />
- <span class="code"><USE_ERROR_FILE>YES</USE_ERROR_FILE><br />
- </span>So, if you set the value to NO, like in the line below,<br />
- <span class="code"><USE_ERROR_FILE>NO</USE_ERROR_FILE><br />
- </span>MyServer will (by default) just send a header to your browser with
- the error code. But you have the option to send a HTTP body included in
- the error, by adding this line:<br>
- <span class="code"><ERRORS_INCLUDE_BODY>YES</ERRORS_INCLUDE_BODY></span>
- <br />
- <br />You can change the layout of the
- directory browsing page (used when you don't have a default page, as
- described in the <a href="browsefolder.html">Browse directory
- index</a> section).
- The line below, in myserver.xml, points to the CSS
- file used to configure the layout for the browsing directory pages:<br />
- <span class="code"><BROWSEFOLDER_CSS>system/folderstyle.css</BROWSEFOLDER_CSS></span>
-
-
- <br />
-
- <hr />
-
- <br />
-
- CGI Scripts can get the Server Administrator E-mail and show them to
- the user(through the <span class="code">SERVER_ADMIN</span> environment variable). So, it can be important you define this address properly, by
- setting the value in the line below, <span class="code">in myserver.xml</span>:<br />
- <span class="code"><SERVER_ADMIN>administrator@localhost</SERVER_ADMIN></span>
- <br />
- <hr />
- MyServer offers the feature to follow symlinks on Unix-like Operating systems (e.g.: Linux, *BSD, GNU/HURD, Solaris, etc.).<br />
- You can add the symlink following feature for all hosts in the myserver.xml file.<br />
- <span class="code"><FOLLOW_LINKS>YES</FOLLOW_LINKS></span><br /><br />
- The default is: <span class="code"><FOLLOW_LINKS>NO</FOLLOW_LINKS></span>
- This value is used by default by MyServer.
- </td>
- </tr>
- </table>
- </body>
- </html>